"use strict"
/**
 * @param {import("egg").Application} app
 */
module.exports = app => {
	const Sequelize = app.Sequelize
	const sequelize = app.model
	let userEmpireStore = sequelize.define("userEmpireStore", {
		storeid: {
			type: Sequelize.SMALLINT,
			allowNull: false
		},
		oid: {
			type: Sequelize.INTEGER,
			allowNull: false
		},
		level: Sequelize.INTEGER,// 商店等级
		total_current_income: {// 当前总收入
			type: Sequelize.DOUBLE,
			defaultValue: false
		},
		sales_round: {// 销售轮次
			type: Sequelize.INTEGER
		}
	}, {
		timestamps: false,
		comment: "用户道具 additionProp",
		tableName: "empire_user_store"
	})
	return userEmpireStore
}